<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="./resource/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="./resource/fonts/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="./resource/css/common.css"/>
	</head>
	<body>
		<!--该页面包含列表样式和遮罩层搜索部分-->
		<div class="container-fluid">
			<div class="row mheader">
				<div class="col-xs-2 text-left"><a href="javascript:;" onclick="javascript:history.back(-1);"><span ></span></a></div>
				<div class="col-xs-8"><h2>消息</h2></div>
				<div class="col-xs-2"></div>
			</div>
			<div class="row">
				<div class="notice-list">
				  	<ul id="msg">
					  	<!--<li><a href="message-details.html" class="clearfix"><span class="iconfont icon-pull-right pull-right"></span>工程进度如何</a></li>-->
					    <!--<li><a href="message-details.html" class="clearfix"><span class="iconfont icon-pull-right pull-right"></span>合同签署状态</a></li>-->
					    <!--<li><a href="#" class="clearfix"><span class="iconfont icon-pull-right pull-right"></span>项目委托人是谁</a></li>-->
						<!--<li><a href="#" class="clearfix"><span class="iconfont icon-pull-right pull-right"></span>消息页面</a></li>-->
					</ul>
				</div>
			</div>
		</div>
	</body>
	<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
	<script src="./resource/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="./resource/js/style.js" type="text/javascript" charset="utf-8"></script>
	<script src="../resources/js/template-web.js" type="text/javascript" charset="utf-8"></script>
	<script id="m_list" type="text/html">
		<% for(var i = 0; i < data.length; i++){ %>
			<li><a href="message-details.html" class="clearfix">{{data[i].sendMessage}}</a></li>
		<% } %>
	</script>
	<script>

        /**
         * 	发送消息
         * @param data
         */
        function senMsg(data) {
            if ( data.length > 0 ){
                var html = '';
                //消息格式 mm|mm|mm... 格式
                var arr = data.split("|");
                console.log(data);
                for (var i=0; i<arr.length; i++){
                    html += '<li><a href="###" class="clearfix">'+arr[i]+'</a></li>';
                }
                $("#msg").html(html);
			}

        }

	</script>

</html>
